<?php

/**
 * Class ApiException
 * Edit from original library OAuth-PHP of Marc Worrell <marcw@pobox.com> 
 *
 * Helper class to keep track exception of API request
 *
 * @editor: Phong Linh <langxangvn@gmail.com>
 * @see http://code.google.com/p/oauth-php
*/
class ApiException extends OAuthException {		
	/**
	 * Override __toString
	 *
	 * @return string Description of exception
	 *
	 */
	public function __toString() {
		return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
	}	
}
?>